* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

header {
  text-align: center;
  height: 50px;
  line-height: 50px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 24px;
  color: #333333;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 22px;
  color: #444444;
  margin-bottom: 20px;
}

ul {
  list-style: none;
  margin-bottom: 20px;
}

.type li {
  height: 30px;
  margin-right: 20px;
  margin-left: 5px;
}

ul li a {
  text-decoration: none;
  color: #1a73e8;
}

.api-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}

.api-section>div {
  flex: 1 1 calc(50% - 20px);
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.api-section h1 {
  margin-bottom: 10px;
  /* font-size: 20px; */
  color: #333333;
  text-align: -webkit-center;
}

.api-section h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
  color: #555555;
}

.api-section p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.api-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #fafafa;
}

.api-section th,
.api-section td {
  border: 1px solid #e0e0e0;
  padding: 10px;
  text-align: left;
}

.api-section th {
  background-color: #f2f2f2;
}

.api-section pre {
  background-color: #f4f4f4;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.api-section code {
  font-family: "Courier New", Courier, monospace;
}

.api-section .note {
  background-color: #fffbe6;
  padding: 15px;
  border-left: 4px solid #ffd700;
  margin-top: 20px;
}

.api-section .note p {
  margin: 0;
}

.type-weather span {
  font-weight: bold;
  font-size: 15px;
}

.type-weather li {
  height: 25px;
}

ol li {
  margin-left: 17px;
  height: 25px;
}

/* 返回底部按钮 */
.content {
  padding: 20px;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

#back-to-top:hover {
  opacity: 1;
}

.hidden {
  display: none;
}